package org.zjx.controller;


import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.zjx.common.bean.Result;
import org.zjx.common.util.BeanUtil;
import org.zjx.dao.dto.PropDTO;
import org.zjx.dao.entity.Prop;
import org.zjx.dao.entity.Screen;
import org.zjx.service.IScreenService;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 
 * @since 2025-05-29
 */
@Tag(name = "场景管理接口")
@RestController
@RequestMapping("/screen")
@RequiredArgsConstructor
public class ScreenController {

    private final IScreenService screenService;

    @Operation(summary = "上传场景")
    @PostMapping("/saveScreen")
    public Result saveScreen(@RequestBody Screen screen) {

        screenService.save(screen);
        return Result.isOk();
    }
}
